<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
    <div class="container">
        <div class="sidebar">
            <ul>
                <li><a href="{{ url_for('index') }}">主页</a></li>
                <li><a href="{{ url_for('page1') }}">IP配置</a></li>
                <li><a href="{{ url_for('page2') }}">天眼数据</a></li>
                <li><a href="{{ url_for('page2') }}">天眼</a></li>
                <li><a href="{{ url_for('page2') }}">天眼刷新</a></li>
            </ul>
        </div>
        <div class="main-content">
            <div class="top-bar">
                <h1>{% block header %}{% endblock %}</h1>
                <div class="logout">
                    <span>当前用户：{{ current_user.username }}</span>
                    <a href="{{ url_for('logout') }}">注销用户</a>
                </div>
            </div>
            <div class="content">
                {% block content %}{% endblock %}
            </div>
        </div>
    </div>
</body>
</html>